FROM nginx

WORKDIR /usr/share/nginx/html

USER root
#自己本地定义一个nginx.conf，然后替换到容器中
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf

#将本地打包好的dist静态资源文件，复制到容器默认能找到的位置
COPY ./dist /usr/share/nginx/html

CMD ["nginx","-g","daemon off;"]